package cn.ibdsr.human.transfer.job;

import cn.ibdsr.human.db.model.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/4 9:50
 */
@ApiModel("保存工作信息DTO")
@Data
public class JobSaveDTO extends BaseDTO {


    /**
     * 岗位名称
     */
    @ApiModelProperty(value = "岗位名称", required = true)
    @NotEmpty(message = "岗位名称不能为空")
    private String name;

    /**
     * 薪资范围
     */
    @ApiModelProperty(value = "薪资范围", required = true)
    @NotEmpty(message = "薪资范围不能为空")
    private String salary;



    /**
     * 用工类型
     */
    @ApiModelProperty(value = "用工类型", required = true)
    @NotNull(message = "用工类型不能为空")
    private Integer workerType;

    /**
     * 学历要求
     */
    @ApiModelProperty(value = "学历要求", required = true)
    @NotNull(message = "学历要求不能为空")
    private Integer education;

    /**
     * 经验要求
     */
    @ApiModelProperty(value = "经验要求", required = true)
    @NotNull(message = "经验要求不能为空")
    private Integer experience;

    /**
     * 年龄要求
     */
    @ApiModelProperty(value = "年龄要求")
    private String ageRequire;

    /**
     * 其他要求
     */
    @ApiModelProperty(value = "其他要求")
    @Length(max = 100,message = "长度不超过100个字")
    private String otherRequire;


    /**
     * 是否发布（0-否；1-是；）
     */
    @ApiModelProperty(value = "是否发布（0-否；1-是；）", required = true)
    @NotNull(message = "是否发布不能为空")
    private Boolean isPublish;

    /**
     * 用工类型
     */
    @ApiModelProperty(value = "性别要求")
    private Integer gender;
}
